package com.sxd.ssm.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class BCryptPasswordEncoderUtils {
    private static BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();
    public static String encodePassword(String password){
        return bCryptPasswordEncoder.encode(password);
    }

    /*public static void main(String[] args) {
        String password = "123";
        System.out.println(encodePassword(password));//$2a$10$SK21lgyS5oiOBAg1RjPvPuoNpFNCA.f5W8Krj9pDM2GeUDrNxkMGW
    }*/
}
